﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Category.aspx.cs" Inherits="Category" %>
<%@ Import Namespace="ThuatToan.Utils"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title><asp:Literal ID="literalHeader" runat="server"></asp:Literal></title>
    <link href="Css/cbdb-search-form.css" type="text/css" rel="stylesheet" media="screen" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        
        .style2
        {
            width: 393px;
        }
        .style3
        {
            width: 182px;
        }
        
        .result
        {
        	width: 727px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div class="bheading">
        <div>
            <div>
                <div>
                    <div>
                        <div>
                            <h3>
                                <a href="#">
                                    <asp:Label ID="lbl_Name" runat="server" Text="Label"></asp:Label></a>
                            </h3>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<div class="result">
    
    <asp:GridView ID="GridView1" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        EnableModelValidation="True" Width="100%" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField HeaderText="Thuật Toán">
                <ItemTemplate>
                    <img alt="star" src="Images/icon_star.gif" />
                    <asp:HyperLink ID="hpl_ItemName" runat="server"
                        Font-Underline="False" ForeColor="#AA0000"
                        Font-Size="Small" 
                        NavigateUrl='<%# "~/it_" + StringUtil.Convert_Chuoi_Khong_Dau(Eval("Name").ToString()) + "-" + Eval("ItemID").ToString() + ".aspx" %>'
                        Text='<%# Eval("Name") %>'>
                    </asp:HyperLink>
                </ItemTemplate>
                <ItemStyle BorderColor="#666699" HorizontalAlign="Left" />
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Thể Loại">
                <ItemTemplate>
                    <asp:HyperLink ID="hpl_CategoryName" runat="server"
                        Font-Underline="False" ForeColor="#125D89"
                        Font-Size="Small" 
                        NavigateUrl='<%# "~/ct_" + StringUtil.Convert_Chuoi_Khong_Dau(Eval("CategoryName").ToString().Trim()) + "-" + Eval("CategoryID").ToString().Trim() + ".aspx" %>'
                        Text='<%# Eval("CategoryName") %>'>
                    </asp:HyperLink>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" Width="200px"/>
                <ItemStyle BorderColor="#666699" HorizontalAlign="Center"/>
            </asp:TemplateField>
            
        </Columns>
        
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    
</div>
</asp:Content>

